<?php

class MyClass {

    public function compare () {
        if ($this->test() == 10)^

    }
}